package com.jimmy.nonweb.base;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class AppRunner implements CommandLineRunner {

    @Autowired
    private FooService fooService;

    @Override
    public void run(String... args) throws Exception {
        System.out.println("Application started. FooService says: " + fooService.getFoo());
    }
} 